var swiper1 = new Swiper(' .m_main .swiper-container', {
	pagination: ' .m_main .swiper-pagination',
	slidesPerView: 4.5,
});

var swiper2 = new Swiper(' .banner .swiper-container', {
	pagination: '.banner .swiper-pagination',
	nextButton: '.banner .swiper-button-next',
	prevButton: '.banner .swiper-button-prev',
	paginationClickable: true,
	spaceBetween: 30,
	centeredSlides: true,
	autoplay: 2500,
	autoplayDisableOnInteraction: false
});

jQuery(function($) {
	$.ajax({
		type: "get",
		url: "../json/ce.json",
		dataType: 'json',
		success: function(data) {
			var arr = template('template_s', {
				str: data
			});
			$('.submenu').html(arr);
		}
	});
	$('#left').click(function() {
		$('.ce').animate({
			left: "0"
		}, 500);
		$('.meng').slideToggle();
	})
	$('.meng').click(function() {
		$('.ce').animate({
			left: "-86%"
		});
		$(this).slideToggle();
	})
	$('.B_red').click(function(){
		$(this).parent().siblings().children('.B_write').show();
		
	})
})